package panda.rmi.client.impl;

import java.sql.SQLException;

import panda.rmi.client.MetaDataAdapter;
import panda.rmi.server.ServerMetaData;

public class PandaMetaData extends MetaDataAdapter {
	private ServerMetaData md;
	
	PandaMetaData(ServerMetaData md) {
		this.md = md;
	}
	
	public int getColumnCount() throws SQLException {
		try {
			return md.getColumnCount();
		}
		catch (Exception e) {
			throw new SQLException(e);
		}
	}
	
	public String getColumnName(int idx) throws SQLException {
		try {
			return md.getColumnName(idx);
		}
		catch (Exception e) {
			throw new SQLException(e);
		}
	}
	
	public int getColumnType(int idx) throws SQLException {
		try {
			return md.getColumnType(idx);
		}
		catch (Exception e) {
			throw new SQLException(e);
		}
	}
}
